﻿/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2012-2018. All rights reserved.
 * Description:
 * Author: 辛爱国 x30005137
 * Create: 2020-07-28
 * Notes: 无
 */
#pragma once

#include <QEvent>
#include <QMouseEvent>
#include <QResizeEvent>
#include "HWDialog.h"
#include "ui_settingmenudialog.h"
class SettingMenuDialog : public HWDialog,
    public  Ui::SettingMenuDialog {
    Q_OBJECT

public:
    // 必须把parent传进来
    SettingMenuDialog(QWidget *parent = Q_NULLPTR);
    ~SettingMenuDialog();
    virtual bool event(QEvent *event);
public slots: 
    void on_pushButtonAbout_clicked();
    void on_pushButtonLogInfo_clicked();
    void on_pushButtonSetting_clicked();
    void on_pushButtonMinExit_clicked();
    void on_pushButtonShareMenu_clicked();
    void on_pushButtonShowMainWindow_clicked();
    void on_pushButtonStopShareMenu_clicked();
    void on_pushButtonConnect_clicked();
	void on_pushButtonSetCode_clicked();
    void keyPressEvent(QKeyEvent *event);
    virtual bool eventFilter(QObject *watched, QEvent *event);
signals:
    void leaveOut();
private:
    void leaveEvent(QEvent *e);
    QWidget *m_parent = nullptr;            // m_parent必须之主窗口
};
